package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小飞
 * @since 2019-06-24
 */
@TableName("zj_return")
public class Return implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 消费者姓名
     */
    @TableField("consumer_name")
    private String consumerName;

    /**
     * 联系方式
     */
    @TableField("consumer_phone")
    private String consumerPhone;

    /**
     * 售后地址
     */
    @TableField("consumer_address")
    private String consumerAddress;

    /**
     * 退货的产品，关联订单ID
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 问题种类，关联问题种类ID
     */
    @TableField("trouble_type_id")
    private Long troubleTypeId;

    /**
     * 评价
     */
    @TableField("evaluate")
    private String evaluate;

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    /**
     * 退货方式
     */
    @TableField("return_type_id")
    private Integer returnTypeId;

    /**
     * 状态值
     */
    @TableField("status")
    private Integer status;

    /**
     * 地址id
     */
    @TableField("address_id")
    private Long addressId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConsumerName() {
        return consumerName;
    }

    public void setConsumerName(String consumerName) {
        this.consumerName = consumerName;
    }

    public String getConsumerPhone() {
        return consumerPhone;
    }

    public void setConsumerPhone(String consumerPhone) {
        this.consumerPhone = consumerPhone;
    }

    public String getConsumerAddress() {
        return consumerAddress;
    }

    public void setConsumerAddress(String consumerAddress) {
        this.consumerAddress = consumerAddress;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getTroubleTypeId() {
        return troubleTypeId;
    }

    public void setTroubleTypeId(Long troubleTypeId) {
        this.troubleTypeId = troubleTypeId;
    }

    public String getEvaluate() {
        return evaluate;
    }

    public void setEvaluate(String evaluate) {
        this.evaluate = evaluate;
    }

    public Integer getReturnTypeId() {
        return returnTypeId;
    }

    public void setReturnTypeId(Integer returnTypeId) {
        this.returnTypeId = returnTypeId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Return{" +
        "id=" + id +
        ", consumerName=" + consumerName +
        ", consumerPhone=" + consumerPhone +
        ", consumerAddress=" + consumerAddress +
        ", orderId=" + orderId +
        ", troubleTypeId=" + troubleTypeId +
        ", evaluate=" + evaluate +
        ", returnTypeId=" + returnTypeId +
        ", status=" + status +
        "}";
    }
}
